Link Search Menu Expand Document

Stats min/max

The set_stat_max/min functions can be used to set the valid ranges on stats. Values returned by get_current_stat will be clamped to this range. The set_pc_ function only affects the player, the set_npc_ functions only affects other critters, and the set_ functions affects both.

Функции


set_npc_stat_max

void set_npc_stat_max(int stat, int value)

set_npc_stat_min

void set_npc_stat_min(int stat, int value)

set_pc_stat_max

void set_pc_stat_max(int stat, int value)

set_pc_stat_min

void set_pc_stat_min(int stat, int value)

set_stat_max

void set_stat_max(int stat, int value)

set_stat_min

void set_stat_min(int stat, int value)